#include "WMI_Directory.h"

WMI_Directory::WMI_Directory(IWbemClassObject* pclsObj) : WMI_FileDirectory(pclsObj)
{
}

WMI_Directory::WMI_Directory(wstring& dirName) : WMI_FileDirectory()
{
    setName(dirName);
}

WMI_Directory::~WMI_Directory(void)
{
}

void WMI_Directory::addFileDir(WMI_FileDirectory* fileDir)
{
    _content.push_back(fileDir);
}
    
void WMI_Directory::print()
{
    for(vector<WMI_FileDirectory*>::iterator it = _content.begin(); it != _content.end(); it++)
    {
        (*it)->print();
    }
}
